package com.accompany.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 钱包表
 * </p>
 *
 * @author DC
 * @since 2024-12-26
 */
@Data
@Schema(name = "Wallets对象", description = "钱包表")
public class Wallet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(name = "userId", description = "用户ID")
    private Long userId;

    @Schema(name = "balance", description = "余额")
    private BigDecimal balance;

    @Schema(name = "frozenAmount", description = "冻结金额")
    private BigDecimal frozenAmount;

    @Schema(name = "status", description = "状态 0:冻结 1:正常")
    private Byte status;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}
